user defined functions in c with examples